package refactor.collapsehierarchy.original;

public class Employee {
    protected String id;
    protected String name;
    protected int grade;

    protected Employee(String id, String name, int grade) {
        this.id = id;
        this.name = name;
        this.grade = grade;
    }

    protected void initCar() {
        if (isPrivileged()) {
            assignCar();
        }
    }

    private void assignCar() {

    }

    private boolean isPrivileged() {
        return grade > 4;
    }
}
